package master.photo.domain

class PhotoAlbum {
	
	String albumName;
	String description;
	Date dateCreated;
	Date lastUpdated;
	
	static constraints = {
		albumName(blank: false)
		description(blank: true)
	}
	
	static belongsTo = [profile: Profile]
	
	static hasMany = [photos: Photo]
	
	static mapping = {
		sort dateCreated: "desc"
	}
	
}
